package com.discovery.common.ret;


import lombok.Getter;

@Getter
public enum RetCode {

    SUCCESS(200,"success"),

    FAIL(400,"fail"),

    UNAUTHORIZED(401,"unauthorized"),

    NOT_FOUND(404,"not found this page"),

    INTERNAL_SERVER_ERROR(500,"internal server error");


    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
